﻿// (c) Copyright Damian Mehers http://damianblog.com/
// This source is subject to the Microsoft Public License.
// See http://www.microsoft.com/resources/sharedsource/licensingbasics/sharedsourcelicenses.mspx.
// All other rights reserved.

using System;
using System.Collections.Generic;
using System.Text;

namespace MceFM.Last.MediaPlayer {
  class TrackStoppedOrStartedEventArgs : EventArgs {
    private readonly bool started;
    private readonly string name;
    private readonly string album;
    private readonly string artist;
    private readonly int elapsedSeconds;
    private readonly int duration;

    public TrackStoppedOrStartedEventArgs(bool started, string name, string album, string artist, int duration) {
      this.started = started;
      this.name = name;
      this.album = album;
      this.artist = artist;
      this.duration = duration;
    }

    public TrackStoppedOrStartedEventArgs(bool started, string name, string album, string artist, int elapsedSeconds, int duration) {
      this.started = started;
      this.name = name;
      this.album = album;
      this.artist = artist;
      this.elapsedSeconds = elapsedSeconds;
      this.duration = duration;
    }

    public int Duration {
      get { return duration; }
    }

    public int ElapsedSeconds {
      get { return elapsedSeconds; }
    }

    public bool Started {
      get { return started; }
    }

    public string Name {
      get { return name; }
    }

    public string Album {
      get { return album; }
    }

    public string Artist {
      get { return artist; }
    }

    public override string ToString() {
      return string.Format("Started={0}, Name='{1}', Album='{2}', Artist='{3}', Elapsed={4}, Duration={5}", started, name, album, artist, elapsedSeconds, duration);
    }
  }
}
